package com.black.cat.bean;


import com.black.cat.xml.XmlBeanDefinitionReader;

import java.io.InputStream;


/**
 *  xml 解析的BeanFactory
 */
public class XmlBeanFactory extends DefaultListableBeanFactory {


    //     XmlBeanDefinitionReader  职责：对资源文件进行读取、注册
    private final XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(this);



    public XmlBeanFactory(InputStream resource) throws Exception {

        this.reader.loadBeanDefinitions(resource);
    }
}
